package com.wing.productionPlan.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wing.productionPlan.model.entity.ProQualityWay;
import com.wing.productionPlan.model.response.ProQualityWayVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 质检方法
 * @author
 */
@Mapper
public interface ProQualityWayDao extends BaseMapper<ProQualityWay> {

    /**
     * 查询质检方法列表
     * @param pg
     * @param map
     * @return
     */
    List<ProQualityWayVo> pageList4app(@Param("page") Page<ProQualityWayVo> pg, @Param("map") Map map);

    /**
     * 查询对应coe是否存在
     * @param qualityCode
     * @return
     */
    List<ProQualityWayVo> getProQualityWayVoByCode(@Param("qualityCode") String qualityCode);


}
